package com.example.warehouse.sys.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("sys_user_role")
public class SysUserRole implements Serializable {
    /*
     * 数据ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /*
     * 用户ID
     */
    private Long userId;

    /*
     * 角色ID
     */
    private Long roleId;

    /*
     * 数据创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /*
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
